package com.han.spider.safecounty;

/**
 * @Author: Hanjiafeng
 * @Date: 2020/5/23
 * @Desc: 行政区级别
 */
public enum LevelEnum {
    /**
     * 县
     */
    XIAN(0, "县"),
    /**
     * 镇子
     */
    ZHEN(1, "镇"),
    /**
     * 村子
     */
    CUN(2, "村"),
    /**
     * 庄子
     */
    ZHUANG(3, "庄"),
    /**
     * 其他
     */
    OTHER(4, "其他");

    private int id;
    private String name;

    LevelEnum(int id, String name) {
        this.id = id;
        this.name = name;
    }

    @Override
    public String toString() {
        return name;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
